<?php
namespace app\models;

use app\models\Base;
use think\Model;
use think\Db;
use think\facade\Config;

class ApiLog extends Base
{
	/**
     * 记录日志
     *
     * @param  
     * @return 
     */
	public function add($fid, $data_type, $json_data)
	{
		
		$data = [];
		$data['fid'] = $fid;
		$data['data_type'] = $data_type;
		$data['json_data'] = $json_data;
		$data['add_time'] = date('Y-m-d H:i:s', time());
		return self::data($data)->insert();
	}

	
}